#include<reg51.h>
#include<uart.h>
#include<delay.h>
#include<1602.h>

unsigned char s[10]="\0";
int i=0;

//接收信息的单片机程序
void main()
{
	TMOD=0x20;
	TH1=0xFD;
	TL1=0xFD;
	TR1=1;
	SCON=0x50;
	
	ES=1;
	EA=1;
	
	LCD_Init();
	while(1)
	{
		LCD_Write_String(0,0,s);
	}
}

void ex0_isr() interrupt 4
{
	if(RI)
	{
		s[i]=SBUF;
		RI=0;
		i++;
	}
}
